package com.twxm.breed.entity;


import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "device_iot")
public class Device2IOT {
    @IsKey
    @IsAutoIncrement
    private int iotId;

    @Column(name = "device_id",type = MySqlTypeConstant.VARCHAR)
    @IsNotNull
    private DeviceInfo deviceInfo;

    //模拟器上的设备id
    @Column
    private String productKey;

    //模拟器上的设备名
    @Column
    private String deviceName;
}
